package alOmrane.jdbc.beans;

public class Type_contact {
	private String desi_type_ctt;
	private int id;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Type_contact() {
		super();
	}
	public Type_contact(String desi_type_ctt,int id){

		super();
		this.id=id;
		this.desi_type_ctt = desi_type_ctt;
		
	}
	public String getDesi_type_ctt() {
		return desi_type_ctt;
	}
	public void setDesi_type_ctt(String desi_type_ctt) {
		this.desi_type_ctt = desi_type_ctt;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.desi_type_ctt;
	}
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		return (((Type_contact)obj).getId()==this.getId());
	}
}
